package com.ll.blog.Exception;

import com.ll.blog.contant.ExceptionEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class BlogException extends RuntimeException{
    private Integer code;
    private String message;

    public BlogException(ExceptionEnum e) {
        this.code = e.getCode();
        this.message = e.getMsg();
    }
}
